package com.xiaomaoguai.curator.common.zookeeper.client;

/**
 * @ ClassName: ClientSideZkEvent.java
 * @ author: WeiHui-Z
 * @ date: 2016/11/21 14:38
 * @ version: v1.0.0
 */
public class ClientSideZkEvent {

	private String service;
	private ClientSideZkEventType type;
	private String data;

	public ClientSideZkEvent(String service, ClientSideZkEventType type, String data) {
		this.service = service;
		this.type = type;
		this.data = data;
	}

	public ClientSideZkEventType getType() {
		return type;
	}

	public void setType(ClientSideZkEventType type) {
		this.type = type;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	@Override
	public String toString() {
		return "ClientSideZkEvent{" +
				"service='" + service + '\'' +
				", type=" + type +
				", data='" + data + '\'' +
				'}';
	}
}
